home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
ixemulsrc.lha
/
ixemul-41.4
/
gen_library
/
crypt.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-31
|
2KB
|
79 lines
/* Stubs for crypt functions which may be export restricted by stupid USA
* ITAR (International Trade in Arms Regulations).
*
* To compile a version of the library in the free world (IE outside the USA)
* simply replace this file with the real crypt.c, which should be widely
* available on ftp servers.
*
*/
/*
* Return a pointer to static data consisting of the "setting"
* followed by an encryption produced by the "key" and "setting".
*/
char *
crypt (key, setting)
register const char *key;
register const char *setting;
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return ((char *) 0);
}
/*
* Encrypt (or decrypt if num_iter < 0) the 8 chars at "in" with abs(num_iter)
* iterations of DES, using the the given 24-bit salt and the pre-computed key
* schedule, and store the resulting 8 chars at "out" (in == out is permitted).
*
* NOTE: the performance of this routine is critically dependent on your
* compiler and machine architecture.
*/
int
des_cipher (in, out, salt, num_iter)
const char *in;
char *out;
long salt;
int num_iter;
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return (0);
}
/*
* Set up the key schedule from the key.
*/
int
des_setkey (key)
register const char *key;
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return (0);
}
/*
* "encrypt" routine (for backwards compatibility)
*/
int
encrypt (block, flag)
register char *block;
int flag;
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return (0);
}
/*
* "setkey" routine (for backwards compatibility)
*/
setkey (key)
register const char *key;
{
ix_panic ("This version of ixemul.library does not support encryption/decryption.");
return (0);
}